<?php /* EL PSY CONGROO */     	 	 	  
require '../../../../zb_system/function/c_system_base.php';     	  	 	 
require '../../../../zb_system/function/c_system_admin.php';     			 		 
$zbp->Load();      		    
$action='root';    			 			 
if (!$zbp->CheckRights($action)) {$zbp->ShowError(6);die();}         	  
if (!$zbp->CheckPlugin('San_Rabbit')) {$zbp->ShowError(48);die();}    	  				 
$blogtitle='主题配置';     		   	 
require $blogpath . 'zb_system/admin/admin_header.php';    	   	  	
require $blogpath . 'zb_system/admin/admin_top.php';    			    	
require $blogpath . 'zb_users/theme/San_Rabbit/plugin/header.php';    				 	 	
if(isset($_POST['Data'])){      	   	 
    if (function_exists('CheckIsRefererValid')) CheckIsRefererValid();       		 	 
	foreach($_POST['Data'] as $key=>$val){     	  				
	   $zbp->Config('San_Rabbit')->$key = $val;     		  			
	}       			  
	$zbp->SaveConfig('San_Rabbit');     			 			
	$zbp->ShowHint('good');     		 				
}    				 	 	
?>
<style>.table-details td:first-child {
    width: 20%;
}.td50{width: 50%;}</style>
<div class="page">
          
            <div class="left-admin-menu">
                <nav class="admin-menu">
                  <ul id="treeMenu" class="tree tree-menu" data-ride="tree">
                    <?php San_Rabbit_SubMenu(0);?>
                    
                  </ul>
                </nav>
            </div>
            <div class="content">
            	
                <div class="panel">
                    <div class="panel-heading">
                        <strong><i class="icon icon-file-code"></i>&nbsp;&nbsp;基础设置</strong>
                    </div>
                    <div class="table-border">
                         <form id="form1" name="form1" method="post">
                            <table class="table table-line-height table-details table-hover ">
                                <tbody>
                                    <tr>
                                        <td><p align="center">PC Logo设置</p></td>
                                        <td class="td50">
                                            <div class="input-control search-box has-icon-left has-icon-right search-example">
                                                <input id="uplod_img1" type="text" class="form-control uplod_img" name="Data[logo]" value="<?php echo $zbp->Config('San_Rabbit')->logo;?>" style="margin: 0;">
                                                <input type="button" class="btn upload_button btn-primary" value="上传">
                                            </div>
                                        </td>
										<td><p align="left">LOGO尺寸建议：484x240</p></td>
                                    </tr>
                                   <tr>
                                        <td><p align="center">WAP Logo设置</p></td>
                                        <td class="td50">
                                            <div class="input-control search-box has-icon-left has-icon-right search-example">
                                                <input id="uplod_img1" type="text" class="form-control uplod_img" name="Data[waplogo]" value="<?php echo $zbp->Config('San_Rabbit')->waplogo;?>" style="margin: 0;">
                                                <input type="button" class="btn upload_button btn-primary" value="上传">
                                            </div>
                                        </td>
										<td><p align="left">LOGO尺寸建议：200x70</p></td>
                                    </tr>
									
									<tr>
										<td>
											<p align="center">自定义主题颜色</p>
										</td>
										<td class="td50">
											<p align="left">
												<input type="text" class="form-control" id="color" name="Data[color]" data-provide="colorpicker" data-wrapper="input-group-btn" data-pull-menu-right="true" value="<?php echo $zbp->Config('San_Rabbit')->color;?>" placeholder="请输入16进制颜色值，例如 #FF00DD">
											</p>
										</td>
										<td><p align="left">默认：#16499d 其他例如：#d10101、#3186fe</p></td>
									</tr>	
									<tr>
										<td>
											<p align="center">顶部公告设置</p>
										</td>
										<td class="td50">
											<p align="left">
												<textarea name="Data[gonggao]" type="text" id="gonggao" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->gonggao;?></textarea>
											</p>
										</td>
										<td><p align="left">导航顶部公告设置</p></td>
									</tr>		
									<tr>
										<td>
											<p align="center">顶部微信设置</p>
										</td>
										<td class="td50">
											<p align="left">
												<textarea rows="6" name="Data[top_wx]" type="text" id="top_wx" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->top_wx;?></textarea>
											</p>
										</td>
										<td><p align="left">顶部微信，悬停展开二维码，留空不显示</p></td>
									</tr>	
									<tr>
                                        <td>
                                            <p align="center">是否开启固定导航栏</p>
                                        </td>
                                        <td>
                                            <p align="left">
                                                <input type="text" id="s_nav_to" name="Data[s_nav_to]" class="checkbox" value="<?php echo $zbp->Config('San_Rabbit')->s_nav_to;?>"/>
                                            </p>
                                        </td>
                                        <td><p align="left">是否开启</p></td>
                                    </tr>
									<tr>
										<td>
											<p align="center">百度统计</p>
										</td>
										<td class="td50">
											<p align="left">
												<textarea name="Data[tongji]" type="text" id="tongji" style="width:98%;"><?php echo $zbp->Config('San_Rabbit')->tongji;?></textarea>
											</p>
										</td>
										<td><p align="left">添加百度统计</p></td>
									</tr>				
									
									
														<tr>
															<td></td>
															<td>
																<input type="hidden" name="csrfToken" value="<?php echo $zbp->GetCSRFToken(); ?>">
																<button type="Submit" class="btn btn-primary">提交</button>
															  
															</td>
														</tr> 
													</tbody>
												</table>
											</form>
										</div>
									</div>
                
                

            </div>
        <div class="copyright">
            <p>三十工作室</p>
        </div>
		
	</div>	

<?php
require $blogpath . 'zb_system/admin/admin_footer.php';    	   		 	
RunTime();        				
?>